AUTOMAKE_OPTIONS = subdir-objects

ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

AM_CXXFLAGS = @AM_CXXFLAGS@ @LIBBANCOMY_DLL_IMPORT@ $(EX_CFLAGS) $(MY_CFLAGS) $(MY_CFLAGS)/../ -I../libex

AM_LDFLAGS = -DBUILDING_EXAMPLE_DLL @AM_LDFLAGS@ $(EX_LIBS) $(MY_LIBS) -I../libex

lib_LTLIBRARIES = libbancomy-@LIBBANCOMY_API_VERSION@.la
lib_LIBRARIES = libbancomy-@LIBBANCOMY_API_VERSION@.a

libbancomy_@LIBBANCOMY_API_VERSION@_ladir = $(includedir)
libbancomy_@LIBBANCOMY_API_VERSION@_adir = $(includedir)

libbancomy_@LIBBANCOMY_API_VERSION@_la_SOURCES = bancomy.C ../libex/libex.C
libbancomy_@LIBBANCOMY_API_VERSION@_a_SOURCES = bancomy.C ../libex/libex.C

libbancomy_@LIBBANCOMY_API_VERSION@_la_HEADERS = bancomy.h ../libex/libex.h
libbancomy_@LIBBANCOMY_API_VERSION@_a_HEADERS = bancomy.h ../libex/libex.h

libbancomy_@LIBBANCOMY_API_VERSION@_la_LDFLAGS = -version-info $(LIBBANCOMY_SO_VERSION) -no-undefined $(MY_LIBS) 

libbancomy_@LIBBANCOMY_API_VERSION@_la_CPPFLAGS = -I. -g -c -L. -I../libex


win32-dll:
	$(CXX) -I. -L. -shared -Wl,-soname,--out-implib,--enable-stdcall-fixup,.libs/libbancomy-@LIBBANCOMY_API_VERSION@.a -o libbancomy-@LIBBANCOMY_API_VERSION@.dll .libs/libbancomy_@LIBBANCOMY_API_VERSION@_la-bancomy.o -L$(prefix)/lib -L$(prefix)/bin $(prefix)/lib/liblibmysql.a $(EX_CFLAGS) $(EX_LIBS) $(MY_CFLAGS) $(MY_LIBS)
